$OpenBSD: patch-src_3rdparty_chromium_third_party_webrtc_base_platform_thread_cc,v 1.1.1.1 2016/12/25 14:13:19 zhuk Exp $
--- src/3rdparty/chromium/third_party/webrtc/base/platform_thread.cc.orig.port	Thu Aug  4 15:18:44 2016
+++ src/3rdparty/chromium/third_party/webrtc/base/platform_thread.cc	Thu Aug  4 15:22:34 2016
@@ -15,7 +15,9 @@
 #include "webrtc/base/checks.h"
 
 #if defined(WEBRTC_LINUX)
+#if !defined(__OpenBSD__)
 #include <sys/prctl.h>
+#endif
 #include <sys/syscall.h>
 #endif
 
@@ -28,6 +30,8 @@ PlatformThreadId CurrentThreadId() {
 #elif defined(WEBRTC_POSIX)
 #if defined(WEBRTC_MAC) || defined(WEBRTC_IOS)
   ret = pthread_mach_thread_np(pthread_self());
+#elif defined(__OpenBSD__)
+  ret = reinterpret_cast<uint64_t>(pthread_self());
 #elif defined(WEBRTC_LINUX)
   ret =  syscall(__NR_gettid);
 #elif defined(WEBRTC_ANDROID)
@@ -59,6 +63,7 @@ bool IsThreadRefEqual(const PlatformThreadRef& a, cons
 
 void SetCurrentThreadName(const char* name) {
   DCHECK(strlen(name) < 64);
+#if !defined(__OpenBSD__)
 #if defined(WEBRTC_WIN)
   struct {
     DWORD dwType;
@@ -77,6 +82,7 @@ void SetCurrentThreadName(const char* name) {
 #elif defined(WEBRTC_MAC) || defined(WEBRTC_IOS)
   pthread_setname_np(name);
 #endif
+#endif  // !__OpenBSD__
 }
 
 }  // namespace rtc
